import Knex from "knex";
// 需要redis则取消注释
// import { createClient } from "redis";

export const db = Knex({
  client: "pg",
  connection: {
    host: "127.0.0.1",
    port: 5432,
    user: "ping",
    password: "nky.2018!",
    database: "postgres",
  },
  searchPath: [''],
});
// 需要redis则取消注释
// export const redis = createClient({
//   url: "redis://default@127.0.0.1:6379",
// });

